import request from '@/utils/request'
export function fetchList(data) {
  return request({
    url:'/product/product/queryProduct',
    method:'post',
    data:data
  })
}

export function createProduct(data) {
  return request({
    url:'/product/product/create',
    method:'post',
    data:data
  })
}

export function updateProduct(id,data) {
  return request({
    url:'/product/product/update/'+id,
    method:'post',
    data:data
  })
}

export function getProduct(id) {
  return request({
    url:'/product/product/updateInfo/'+id,
    method:'get',
  })
}


